import config from '../../../utils/config';
import apiCreator from '../../../utils/apiCreator';

const api = apiCreator();

export default {
  //查询工作流列表
  findFlowList: (query) => api.post(`${config.interfaces.type1}flow/findFlow`, query),
  //新增工作流
  addFlow: (query) => api.post(`${config.interfaces.type1}flow/addFlow`, query),
  //修改工作流
  editFlow: (query) => api.post(`${config.interfaces.type1}flow/saveFlow`, query),
  //删除工作流
  deleteFlow: (query) => api.get(`${config.interfaces.type1}flow/deleteFlow`, query),
  //业务流程子类下拉列表
  getFlowChildType: (query) => api.get(`${config.interfaces.type1}flow/getFlowChildType`, query),
};
